package com.ymttest.common.enums;

public enum EventFromSystemTypeEnum {
	/**
	 * 交易服务
	 */
	Trading(1),

	/**
	 * 资金服务，第一期用户接收体现消息
	 */
	Funding(2);

	private int intValue;
	private static java.util.HashMap<Integer, EventFromSystemTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, EventFromSystemTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, EventFromSystemTypeEnum>();
		}
		return mappings;
	}

	private EventFromSystemTypeEnum(int value) {
		intValue = value;
		EventFromSystemTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static EventFromSystemTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}
